#define  _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
int main()
{
    char arr1[10000];
    char arr2[10000];
    while (scanf("%s %s", &arr1, &arr2) != EOF)
    {
        if (strcmp(arr1, arr2) == 0)
        {
            printf("Login Success!");
        }
        else
        {
            printf("Login Fail!");
        }
    }

    return 0;
}